//
//  BSAFManager.h
//  
//
//  Created by lc on 2017/3/15.
//  Copyright © 2017年 lc. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AFNetworking.h>

typedef enum{
    GET,
    POST,
    PUT,
    DELETE,
    HEAD,
}HTTPMethod;
typedef void (^requestSuccessBlock)(NSDictionary *dic);
typedef void (^requestFinishBlock)(void);
typedef void (^requestFialedBlock)(NSString* err);
@interface ZJBaseAFManager : AFHTTPSessionManager

-(void)requestHttpWithMethod:(HTTPMethod)method withPath:(NSString*)path withDictionary:(NSDictionary*)dictionary withSuccessBlock:(requestSuccessBlock)success withFinishBlock:(requestFinishBlock) finish;
+ (instancetype)sharedManager;
@end
